package com.ruoyi.BeYYYDocComplaint.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.BeYYYDocComplaint.mapper.BeHindDocComplaintMapper;
import com.ruoyi.BeYYYDocComplaint.domain.BeHindDocComplaint;
import com.ruoyi.BeYYYDocComplaint.service.IBeHindDocComplaintService;

/**
 * 投诉记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-17
 */
@Service
public class BeHindDocComplaintServiceImpl implements IBeHindDocComplaintService 
{
    @Autowired
    private BeHindDocComplaintMapper beHindDocComplaintMapper;

    /**
     * 查询投诉记录
     * 
     * @param complaintId 投诉记录主键
     * @return 投诉记录
     */
    @Override
    public BeHindDocComplaint selectBeHindDocComplaintByComplaintId(Long complaintId)
    {
        return beHindDocComplaintMapper.selectBeHindDocComplaintByComplaintId(complaintId);
    }

    /**
     * 查询投诉记录列表
     * 
     * @param beHindDocComplaint 投诉记录
     * @return 投诉记录
     */
    @Override
    public List<BeHindDocComplaint> selectBeHindDocComplaintList(BeHindDocComplaint beHindDocComplaint)
    {
        return beHindDocComplaintMapper.selectBeHindDocComplaintList(beHindDocComplaint);
    }

    /**
     * 新增投诉记录
     * 
     * @param beHindDocComplaint 投诉记录
     * @return 结果
     */
    @Override
    public int insertBeHindDocComplaint(BeHindDocComplaint beHindDocComplaint)
    {
        return beHindDocComplaintMapper.insertBeHindDocComplaint(beHindDocComplaint);
    }

    /**
     * 修改投诉记录
     * 
     * @param beHindDocComplaint 投诉记录
     * @return 结果
     */
    @Override
    public int updateBeHindDocComplaint(BeHindDocComplaint beHindDocComplaint)
    {
        return beHindDocComplaintMapper.updateBeHindDocComplaint(beHindDocComplaint);
    }

    /**
     * 批量删除投诉记录
     * 
     * @param complaintIds 需要删除的投诉记录主键
     * @return 结果
     */
    @Override
    public int deleteBeHindDocComplaintByComplaintIds(Long[] complaintIds)
    {
        return beHindDocComplaintMapper.deleteBeHindDocComplaintByComplaintIds(complaintIds);
    }

    /**
     * 删除投诉记录信息
     * 
     * @param complaintId 投诉记录主键
     * @return 结果
     */
    @Override
    public int deleteBeHindDocComplaintByComplaintId(Long complaintId)
    {
        return beHindDocComplaintMapper.deleteBeHindDocComplaintByComplaintId(complaintId);
    }
}
